################################################################################
#                                    gradle                                    #
################################################################################

snippet tag 
// tag::$1[]$0
endsnippet

snippet end
// end::$1[]$0
endsnippet

snippet date "输出日期"
`!v strftime('%Y-%m-%d')`$0
endsnippet

snippet dt "输出日期"
`!v strftime('%Y/%m/%d')`$0
endsnippet

snippet kbfn "Kotlin build file name"
rootProject.name = 'build.gradle.kts'$0
endsnippet


#######################################################################
#                                 web                                 #
#######################################################################

snippet opa "透明度" 
opacity: ${1:0.5}; filter: alpha(opacity=${0:50});
endsnippet

snippet cssjs "html link" 
<link rel="stylesheet" type="text/css" href="./css/base.css">
<script type="text/javascript" src="./node_modules/jquery/dist/jquery.js"></script>
<script type="text/javascript" src="./js/codergege.js"></script> 
<script type="text/javascript" src="./js/${0:1}.js"></script> 
endsnippet

#####################
#  Javascript Part  #
#####################

snippet wol "window.onload = fn" 
window.onload = function() {
	${0}
}
endsnippet

snippet $$ "jquery $(function(){});" 
$(function() {
	${0}
})
endsnippet

# did: document.getElementById('')
snippet did "document.getElementById"
document.getElementById('${1:id}')${0}
endsnippet


